tsec driver should clear RHALT on startup
authorDan Wilson <[email protected]>
Fri, 19 Oct 2007 16:33:48 +0000 (11:33 -0500)
committerAndrew Fleming-AFLEMING <[email protected]>
Fri, 19 Oct 2007 16:33:48 +0000 (11:33 -0500)
This was causing problems for some people.

Signed-off-by: Alain Gravel <[email protected]>
Signed-off-by: Dan Wilson <[email protected]>
Signed-off-by: Andy Fleming <[email protected]>
drivers/tsec.c

index 4ff3339c7de40d64955b9937470e923f2f939daa..7ba8f0cace90eeeb61d40eb26f0860bc844cc4f1 100644 (file)
@@ -803,6 +803,7 @@ static void startup_tsec(struct eth_device *dev)
        /* Tell the DMA it is clear to go */
        regs->dmactrl |= DMACTRL_INIT_SETTINGS;
        regs->tstat = TSTAT_CLEAR_THALT;
+       regs->rstat = RSTAT_CLEAR_RHALT;
        regs->dmactrl &= ~(DMACTRL_GRS | DMACTRL_GTS);
 }